package com.zzyl.mapper;

import com.zzyl.entity.UserRole;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

@Mapper
public interface RoleUserMapper {
    @Select("select count(1) from sys_user_role where role_id = #{id}")
    Integer countUser(Long id);

    void addUserRole(UserRole userRole);

    @Delete("delete from sys_user_role where user_id = #{id}")
    void delete(Long id);

    Set<String> selectId(Long id);

    Set<String> selectName(Long id);
}
